Complete axiomatizations for XPath fragments

نویسندگان

  • Balder ten Cate
  • Tadeusz Litak
  • Maarten Marx
چکیده

We provide complete axiomatizations for several fragments of XPath: sets of equivalences from which every other valid equivalence is derivable. Specifically, we axiomatize downward single axis fragments of Core XPath (that is, Core XPath(↓) and Core XPath(↓)) as well as the full Core XPath. We make use of techniques from modal logic. XPath is a language for navigating through XML documents. In this paper, we consider the problem of finding complete axiomatizations for fragments of XPath. By an axiomatization we mean a finite set of valid equivalences between XPath expressions. These equivalences can be thought of as (undirected) rewrite rules. Completeness then means that any two equivalent expressions can be rewritten to each other using the given equivalences. Completeness tells us, in a mathematically precise way, that the given set of equivalences captures everything there is to say about semantic equivalence of XPath expressions. We are aware of two complete axiomatizations for XPath fragments. The first is for the downward, positive and filter-free fragment of XPath [1], a rather limited fragment, and the second [5] concerns Core XPath 2.0, a very expressive language, with non-elementary complexity for query containment (see [4]). In this paper, we study Core XPath 1.0, which was introduced in [7, 8] to capture the navigational core of XPath 1.0. Our main results are: – A complete axiomatization for Core XPath(↓) and for Core XPath(↓), i.e., the fragments with only the descendant and only the child axis, respectively. The axiomatizations are complete both for node expressions and for path expressions. ? This technical report is the full version of a paper accepted for LID 2008 workshop. If you are kindly going to quote it in your work, please check http://www.dcs.bbk.ac.uk/~tadeusz/ for the most current version published. ?? Currently on leave visiting IBM Almaden and UC Santa Cruz. – An axiomatization for full Core XPath that is complete for node expressions. The completeness can be extended to path expressions as well, at the cost of introducing an additional rule of inference. Proofs utilize techniques and known results from modal logic. We will describe the connection in more detail in Section 4. Acknowledgements The first author is supported by the Netherlands Organization for Scientific Research (NWO) grant 639.021.508. The second author was supported by NWO grant 680–50–0613 during the period when most of the results were obtained. At present, he is supported by EPSRC grant EP/F002262/1. We would like to thank the anonymous referees for their comments.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Axiomatizations for downward XPath on Data Trees

We give sound and complete axiomatizations for XPath with data tests by ‘equality’ or ‘inequality’, and containing the single ‘child’ axis. This data-aware logic predicts over data trees, which are tree-like structures whose every node contains a label from a finite alphabet and a data value from an infinite domain. The language allows us to compare data values of two nodes but cannot access th...

متن کامل

Some modal aspects of XPath

This paper provides several examples of how known results in modal logic can be applied to the XML document navigation language XPath. The applications concern complete axiomatizations and expressive power.

متن کامل

Containment for XPath Fragments under DTD Constraints

The containment and equivalence problems for various fragments of XPath have been studied by a number of authors. For some fragments , deciding containment (and even minimisation) has been shown to be in ptime, while for minor extensions containment has been shown to be conp-complete. When containment is with respect to trees satisfying a set of constraints (such as a schema or DTD), the proble...

متن کامل

Satisfiability of Simple XPath Fragments under Duplicate-Free DTDs

In this paper, we consider the XPath satisfiability problem under restricted DTDs called “duplicate free”. For an XPath expression q and a DTD D, q is satisfiable under D if there exists an XML document t such that t is valid against D and that the answer of q on t is nonempty. Evaluating an unsatisfiable XPath expression is meaningless, since such an expression can always be replaced by an emp...

متن کامل

Satisfiability of Simple XPath Fragments under Fixed DTDs

The XPath satisfiability problem is to decide, for an XPath expression q and a DTD D, if there exists an XML document t valid against D such that the answer of q on t is nonempty. It is shown that the satisfiability problem is intractable for many XPath fragments. In this paper, we focus on fixed DTDs and consider the problem under fixed DTDs. We first show that, for a very restricted XPath fra...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • J. Applied Logic

دوره 8  شماره 

صفحات  -

تاریخ انتشار 2010